<?php

namespace ORM\Dynasties2;

use Doctrine\ORM\Mapping as ORM;

/**
 * ORM\Dynasties2\Titles
 */
class Titles
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var smallint $titleType
     */
    private $titleType;

    /**
     * @var integer $whichCharacter
     */
    private $whichCharacter;

    /**
     * @var integer $whichRegion
     */
    private $whichRegion;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set titleType
     *
     * @param smallint $titleType
     * @return Titles
     */
    public function setTitleType($titleType)
    {
        $this->titleType = $titleType;
        return $this;
    }

    /**
     * Get titleType
     *
     * @return smallint 
     */
    public function getTitleType()
    {
        return $this->titleType;
    }

    /**
     * Set whichCharacter
     *
     * @param integer $whichCharacter
     * @return Titles
     */
    public function setWhichCharacter($whichCharacter)
    {
        $this->whichCharacter = $whichCharacter;
        return $this;
    }

    /**
     * Get whichCharacter
     *
     * @return integer 
     */
    public function getWhichCharacter()
    {
        return $this->whichCharacter;
    }

    /**
     * Set whichRegion
     *
     * @param integer $whichRegion
     * @return Titles
     */
    public function setWhichRegion($whichRegion)
    {
        $this->whichRegion = $whichRegion;
        return $this;
    }

    /**
     * Get whichRegion
     *
     * @return integer 
     */
    public function getWhichRegion()
    {
        return $this->whichRegion;
    }
    /**
     * @var ORM\Dynasties2\Characters
     */
    private $characterLink;

    /**
     * @var ORM\Dynasties2\Regions
     */
    private $regionLink;


    /**
     * Set characterLink
     *
     * @param ORM\Dynasties2\Characters $characterLink
     * @return Titles
     */
    public function setCharacterLink(\ORM\Dynasties2\Characters $characterLink = null)
    {
        $this->characterLink = $characterLink;
        return $this;
    }

    /**
     * Get characterLink
     *
     * @return ORM\Dynasties2\Characters 
     */
    public function getCharacterLink()
    {
        return $this->characterLink;
    }

    /**
     * Set regionLink
     *
     * @param ORM\Dynasties2\Regions $regionLink
     * @return Titles
     */
    public function setRegionLink(\ORM\Dynasties2\Regions $regionLink = null)
    {
        $this->regionLink = $regionLink;
        return $this;
    }

    /**
     * Get regionLink
     *
     * @return ORM\Dynasties2\Regions 
     */
    public function getRegionLink()
    {
        return $this->regionLink;
    }
}